﻿<provibeLibraryControls:ZoneUserControl
    x:Class="SBPweb.PROvibe.Client.Core.Controls.ModuleBar"
    x:Name="ucModuleBar"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:provibeLibraryControls="clr-namespace:SBPweb.PROvibe.Client.Library.Controls;assembly=SBPweb.PROvibe.Client.Library"
    xmlns:riaClientControls="clr-namespace:SBPweb.RIA.Client.Controls.Content;assembly=SBPweb.RIA.Client.Controls"
    mc:Ignorable="d"
    d:DesignHeight="42" d:DesignWidth="400">
    
    <Grid HorizontalAlignment="Center" Margin="2">
        <Border CornerRadius="5" Padding="5,5,0,5" Background="#88888888" BorderBrush="#40000000" BorderThickness="1">
            <ItemsControl x:Name="icModules" ItemsSource="{Binding ElementName=ucModuleBar, Path=ClientContext.ContentContextModel.Modules}">
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel Orientation="Horizontal" />
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <ContentControl DataContext="{Binding}" Style="{StaticResource ToolBarItemButtonBig}"
                                HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,0,5,0" Visibility="Collapsed"
                                Loaded="Button_Loaded" MouseEnter="Button_MouseEnter" MouseLeave="Button_MouseLeave">
                        </ContentControl>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
            <Border.Effect>
                <DropShadowEffect Color="#FF000000" Opacity="0.7" Direction="-90" BlurRadius="20" />
            </Border.Effect>
        </Border>
    </Grid>
</provibeLibraryControls:ZoneUserControl>